package finalproject.controller.commands;

import finalproject.model.player.Player;
import finalproject.view.StringManager;

/**
 * the PetCommand command
 * @author Salah Dahmoul
 *
 */
public class PetCommand extends Command {

	/**
	 * 
	 * @param player the player issuing the command
	 * @param args the args of the command
	 */
	public PetCommand(Player player, String[] args)
	{
		super(player, args);
	}

	@Override
	public boolean process()
	{
		// Display energy
		String tmp = "\n" + StringManager.getString("petinfo")+ "\n"+ "\n"+ getPlayer().getPet().getName() 
				+ " ( "+ StringManager.getString("energy") +" "+ getPlayer().getPet().getEnergy().getEnergy()+")"
				+ "\n" + StringManager.getString("ability") + " :\t" 
				+ getPlayer().getPet().getAbilities().get(1)
				+ "\n" + "\t" +getPlayer().getPet().getAbilities().get(0)
				+ "\n"+ "\t" +getPlayer().getPet().getAbilities().get(2)
				+ "\n"+"\t" +getPlayer().getPet().getAbilities().get(3);
		
		StringManager.outPutText(tmp);
				return false;
	}
}
